import request from '@/utils/request'

// 查询鉴定单列表
export function listAppraisal(query) {
  return request({
    url: '/archive/appraisal/list',
    method: 'get',
    params: query
  })
}

// 查询鉴定单详细
export function getAppraisal(appraisalId) {
  return request({
    url: '/archive/appraisal/' + appraisalId,
    method: 'get'
  })
}

// 新增鉴定单
export function addAppraisal(data) {
  return request({
    url: '/archive/appraisal',
    method: 'post',
    data: data
  })
}

// 修改鉴定单
export function updateAppraisal(data) {
  return request({
    url: '/archive/appraisal',
    method: 'put',
    data: data
  })
}

// 删除鉴定单
export function delAppraisal(appraisalId) {
  return request({
    url: '/archive/appraisal/' + appraisalId,
    method: 'delete'
  })
}
